package com.weaver.seconddev.api.tl.purchase_api;

import java.util.List;

/**
 * 构造Json报文
 */
public class JsonMessageBuild {

    /**
     * 构造创建PO请求报文
     *
     * @return
     */
    public PoReqMessage buildPoRequestMessage(PoHeader poHeader, PoAddress poAddress, List<PoHeaderText> poHeaderTextList, List<PoItem> poItemList, List<PoItemText> poItemTextList, List<PoItemAddress> poItemAddressList, List<PoAccount> poAccountList, List<PoCondition> poConditionList) {
        // 构造请求报文
        PoReqMessage poReqMessage = new PoReqMessage();
        poReqMessage.setPoHeader(poHeader);
        poReqMessage.setPoAddress(poAddress);
        poReqMessage.setPoHeaderTextList(poHeaderTextList);
        poReqMessage.setPoItemList(poItemList);
        poReqMessage.setPoItemTextList(poItemTextList);
        poReqMessage.setPoItemAddressList(poItemAddressList);
        poReqMessage.setPoAccountList(poAccountList);
        poReqMessage.setPoConditionList(poConditionList);
        return poReqMessage;
    }
}